local activity_Cfg=_G.CommonOHOH.config.Activity;
local goods_Cfg=_G.CommonOHOH.config.Goods;

local M={}

function M.GetConfg()
    local gid=activity_Cfg[1].arg.goodsId
    local itemId,price=M.GetIdAndPrice(gid)
    
    return {
        OnlineTime=activity_Cfg[1].arg.taskTime,
        EggId=tonumber(itemId),
        GoodsId=gid,
        Price=price,
    };
end

function M.GetIdAndPrice(gid)
    local price= goods_Cfg[gid].price
   for k, v in goods_Cfg[gid].itemData do
        local key,id=_G.CommonOHOH.load.ItemTool().GetKeyAndID(k)
        print(k,v,key,id)
        return id,price
   end  
end
return M